﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace G.APITest.Part
{
    /// <summary>
    /// API请求组件接口
    /// </summary>
    public interface IAPIRequestPart
    {
        /// <summary>
        /// 项目扩展属性
        /// </summary>
        Config.KVPair[] ExtensionProjectProperties { get; }

        /// <summary>
        /// 创建请求
        /// </summary>
        /// <param name="config"></param>
        /// <param name="api"></param>
        /// <returns></returns>
        void CreateRequestAsync(Config.APIProjectConfig config, Config.APIConfig api, Action<G.SL.Net.HttpRequest> callback);

        Action<string> RaiseStatusCallBack { get; set; }
    }
}
